﻿import com.dmotiko.mirador.*
import com.dmotiko.general.*
import mx.utils.Delegate;

class MiradorRoomButtons
extends BaseClip {
	
	private var btnVideo:Button;
	private var btnGaleria:Button;
	private var btnCapacidad:Button;
	
	private function initClip():Void {
		super.initClip();
		var root:MiradorRoomButtons = this;
		btnVideo.onRelease = function() {
			root.dispatchEvent( { target: root, type: BaseClipEvent.CHANGED, section: MiradorNuestrosSalones.VIDEO_FRAME } )
		}
		btnGaleria.onRelease = function() {
			root.dispatchEvent( { target: root, type: BaseClipEvent.CHANGED, section: MiradorNuestrosSalones.GALERIA_FRAME } )
		}
		btnCapacidad.onRelease = function() {
			root.dispatchEvent( { target: root, type: BaseClipEvent.CHANGED, section: MiradorNuestrosSalones.CAPACIDAD_FRAME } )
		}
	}
	
}